package com.todoclipse.dao;

import com.todoclipse.common.HttpRequest;

public class DaoFactory {
	private static class Handler{
		private static final DaoFactory INSTANCE= new DaoFactory();
	}
	private DaoFactory() {
	}
	
	public static DaoFactory getInstance() {
		return Handler.INSTANCE;
	}
	
	public UserDao getUserDao(){
		return new UserDaoImpl(new HttpRequest());
	}
	
	public ItemDao getItemDao(String token){
		return new ItemDaoImpl(new HttpRequest(),token);
	}
}
